package com.sofwin.ex;

import com.alibaba.csp.sentinel.slots.block.BlockException;

/**
 * @packageName: com.sofwin.ex
 * @author: andyliu
 * @date: 2022/5/23 11:18
 * @email 115176513@qq.com
 * @description: TODO
 */

public class MyBlockHandler {
    public static String messageBlock(String name, Integer age, BlockException ex){
        return "对不起，流控"+name+","+age;
    }
    public static String messageFallBack(String name,Integer age,Throwable ex){
        return "异常："+name+","+age;
    }
}
